package com.hundsun.yr.universal.p2p.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.hundsun.yr.universal.p2p.ui.activity.base.BaseFragment;

import java.util.List;


/**
 * @Title: MineInvestPagerAdapter.java 
 * @Description: 我的投资
 * @date 2016-1-5 下午2:45:44 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class SegmentBasePagerAdapter extends FragmentPagerAdapter {
	private List<BaseFragment> mFragments;

	public SegmentBasePagerAdapter(FragmentManager fm, List<BaseFragment> fragments) {
		super(fm);
		this.mFragments = fragments;
	}

	@Override
	public Fragment getItem(int position) {

		return mFragments.get(position);
	}

	@Override
	public int getCount() {
		return mFragments.size();
	}

	public Fragment getFragment(int position){
		return mFragments.get(position);
	}

}
